home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / cbm / 5197 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: news-2.csn.net!dmoorman
  2. From: dmoorman@csn.net (David Moorman)
  3. Newsgroups: comp.sys.cbm
  4. Subject: Re: Strange BASIC behavior (was: Re: Scanning...)
  5. Date: 6 Apr 1996 06:56:40 GMT
  6. Organization: SuperNet Inc. +1.303.296.8202 Denver Colorado
  7. Message-ID: <4k54j8$phc@news-2.csn.net>
  8. References: <4jc9kt$h3p@news.rrz.uni-koeln.de> <9603272258.AA0014u@cosine.demon.co.uk> <Dp0uoD.Mq9@eskimo.com> <4jrclt$lmi@news.lth.se>
  9. NNTP-Posting-Host: 199.117.27.22
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Anders Lindgren (dat94ali@ludat.lth.se) wrote:
  13.  
  14. : This discussion reminds me of a peculiar behavior of C64 Basic V2,
  15. : which I never quite figured out;  If a program consisted of several
  16. : independent parts, you could LOAD a selected part from within the
  17. : code, and the new program would replace the old one, immediately
  18. : starting to execute as soon as it was loaded.  The funny thing was
  19. : that if any program that LOADed another program used an INPUT command
  20. : before the LOAD, the new program would freak out in the most pecualiar
  21. : ways.  This never happened when I replaced the INPUTs with a GET-loop 
  22. : that read strings letter by letter.  Has anyone got an answer to this
  23. : very old, unanswered question of mine?? It'd be fun to know after all
  24. : these years (and now I'm getting a C64 again... :) ).
  25.  
  26. : /ali----------------------------------------------------------------------------
  27. : (Anders Lindgren,                   | A4000/040/ | "Of course it's unreadable! |
  28. :  dat94ali@ludat.lth.se,             | 6Mb/460Mb/ |  Why do you think it's      |
  29. :  http://www.ludat.lth.se/~dat94ali) | 1942/OS3.0 |  called code???"   O-       |
  30. : --------------------------------------------------------------------------------
  31.  
  32. Since then, most folks have just learned not to LOAD from within
  33. BASIC.  A dynamic keyboard technique does perfect Basic LOADs.  
  34. And for ML, use 
  35.  
  36.     sys57812"file",8,0:poke780,0:poke781,addlo:poke782,addhi
  37.     sys65493
  38.  
  39. where addlo/addhi are the lo/hi bytes of the load address.
  40.  
  41. Basic 2.0 was never supposed to be used with a sophisticated color
  42. machine like the C-64.  Thank Someone that SYS, POKE, and PEEK
  43. are supported -- and that 65xx ML is so EASY to USE!
  44.  
  45. Dave
  46.